package laba1.src.launchers;

public class Launcher {
    private IRunnable _runnable;

    public Launcher(IRunnable runnable) throws IllegalArgumentException {
        if (runnable == null) {
            throw new IllegalArgumentException();
        }
        _runnable = runnable;
    }

    public void start() {
        _runnable.run();
    }
}
